﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Person/Person.Master" AutoEventWireup="true" CodeBehind="ulimglic.aspx.cs" Inherits="ZF.WS.Person.space.ulimglic" %>
<%@ Register Src="/UserControls/SWFUpLoad.ascx" TagName="SWFUpLoad" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div class="location   mt10_">
        您现在的位置：<a href="/person/index.aspx">会员中心</a> >> <a href="<%=this.Request.Url %>">图片认证上传</a>
    </div>
    <div>&nbsp;</div>
<div class="editContainer ">
        <table class=" w100_  edit  edit1 ">
            <tbody>
                <tr>
                    <th colspan="4">
                        <div class="c">
                            <%=GetTitle()%>上传
                        </div>
                    </th>
                </tr>
            </tbody>

            <tbody class="other  ">
                <tr>
                    <td class="ll">
                        <div class="c vam_">
                            <span class="xh_"></span>请选择上传的图片：
                        </div>
                    </td>
                    <td class="lr vat_" style="vertical-align: top">
                        <div class="c">
                            <uc1:SWFUpLoad ID="SWFUpLoad1" runat="server" UpLoadURL="/uploadfile.aspx?type=member"
                                FileLimit="1" maxsize="500" FileType="*.gif;*.jpg" />
                            <zf:PlaceHolder ID="PlaceHolder1" runat="server" >
                                <zf:TextBox runat="server" ID="tbPhoto" class="dn_"></zf:TextBox>
                                <style>
                                    .ulimg li
                                    {
                                        float: left;
                                        width: 100px;
                                        margin-right: 10px;
                                        text-align: center;
                                    }
                                    .ulimg li img
                                    {
                                        width: 100px;
                                        height: 100px;
                                    }
                                </style>
                                <div class="ulimg">
                                    <zf:ListView runat="server" ID="lvImgList">
                                        <LayoutTemplate>
                                            <ul>
                                                <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                                                </zf:PlaceHolder>
                                            </ul>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <li>
                                                <img src="/photo/member/<%#Eval("File") %>" />
                                                <input type="button" onclick="DelPhoto(this,'<%#Eval("File") %>')" value="删除图片" />
                                            </li>
                                        </ItemTemplate>
                                    </zf:ListView>
                                </div>

                                <script>

                                    function DelPhoto(obj, file) {
                                        var result = $(".tbPhoto").val().replace(file, "");
                                        $(".tbPhoto").val(result);
                                        $(obj.parentNode).remove();
                                    }
                                </script>

                            </zf:PlaceHolder>
                        </div>
                    </td>
                </tr>
                
            </tbody>
            <tbody>
                <tr class="b">
                    <td colspan="4">
                        <div>
                            <zf:Button ID="btAdd" class="linkbtn addSubmit" runat="server" OnClick="EditSubmit"
                                Text=" 提 交 "></zf:Button>
                            <input type="button" class="linkbtn" value=" 取 消 " onclick="goBack();" />
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
 

</asp:Content>
